package com.hunan.api.catv.action.smartfamily;

import com.hunan.api.catv.action.BaseAction;
import com.hunan.api.catv.annotation.MemberAuth;
import com.hunan.api.catv.common.Api;
import com.hunan.api.catv.entity.Result;
import com.hunan.api.catv.service.biz.smartfamily.SmartFamilyBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author jiang zhuan
 * @version 1.0
 * @description 描述
 * @date 2021/11/19 0019
 * @package com.hunan.api.catv.action.smartfamily
 * @company 湖南有线
 */
@RestController
@RequestMapping(Api.smartFamily)
public class SmartFamilyAction extends BaseAction {

    @Autowired
    SmartFamilyBiz smartFamilyBiz;

    @MemberAuth
    @PostMapping("/login")
    public Result login(HttpServletRequest request) {
        return buildOK(smartFamilyBiz.login(getMemberId(request)), "");
    }

}
